package org.tissou.server.Services;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import org.tissou.client.Services.EnsemblePropriosService;
import org.tissou.client.Services.ProprietaireInfos;
import static org.tissou.server.Utils.Variables_Globales.ListeProprietaire;
import org.tissou.server.Base.Proprietaire;

import java.util.List;
import java.util.ArrayList;

/**
 * Created by IntelliJ IDEA.
 * User: Claire
 * Date: 19-Mar-2009
 * Time: 22:17:14
 * To change this template use File | Settings | File Templates.
 */
public class EnsemblePropriosServiceImpl extends RemoteServiceServlet implements EnsemblePropriosService {
  public List<ProprietaireInfos> donnerListeProprietaires() {
    List<ProprietaireInfos> liste = new ArrayList<ProprietaireInfos>();
    for (Proprietaire p : ListeProprietaire.getListe()){
      liste.add(p.getInfos());
    }
    return liste;
  }
}